/*
 * @Author: Penk
 * @LastEditors: Penk
 * @LastEditTime: 2022-09-14 17:59:03
 * @FilePath: \autojs\去除限制.js
 */

function init去限制() {
  importClass(com.stardust.autojs.core.accessibility.AccessibilityBridge.WindowFilter);
  let bridge = runtime.accessibilityBridge;
  let bridgeField = runtime.getClass().getDeclaredField("accessibilityBridge");
  let configField = bridgeField.getType().getDeclaredField("mConfig");
  configField.setAccessible(true);
  configField.set(bridge, configField.getType().newInstance());
  bridge.setWindowFilter(new JavaAdapter(AccessibilityBridge$WindowFilter, {
      filter: function(info) {
          return true;
      }
  }));
}
init去限制();
app.launchApp('抖音极速版')
click("朋友")